home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
Main.bin
/
SymantecEventHook.java
< prev
next >
Wrap
Text File
|
1998-09-25
|
972b
|
32 lines
package java.awt;
public interface SymantecEventHook {
final static class Manager {
/**
* currently only one Hook is supported
*/
static SymantecEventHook theHook=null;
static public void registerHook(SymantecEventHook h) {
theHook = h;
}
static public void unregisterHook(SymantecEventHook h) {
if (theHook == h)
theHook = null;
}
static public void beforeEvent(AWTEvent ev) {
if (theHook!=null)
try {
theHook.beforeEvent(ev);
} catch(Exception e) {}
}
static public void afterEvent(AWTEvent ev) {
if (theHook!=null)
try {
theHook.afterEvent(ev);
} catch(Exception e) {}
}
};
public void beforeEvent(AWTEvent e);
public void afterEvent(AWTEvent e);
};